-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace snafu with thiserror #93
Conversation
WrongEncoding {}, | ||
#[snafu(display("{}", source))] | ||
#[snafu(context(false))] | ||
#[error(transparent)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will handle the impl of Display to the underlying error.
@@ -23,11 +23,6 @@ | |||
//! * [cloudevents-sdk-reqwest](https://docs.rs/cloudevents-sdk-reqwest): Integration with [reqwest](https://github.com/seanmonstar/reqwest) | |||
//! | |||
|
|||
extern crate serde; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for extern crate
in the 2018 edition
245fa16
to
ab2008d
Compare
I'm also getting an unused import warning, maybe it's good to fix it as well? warning: unused import: `attributes::AttributesIter`
--> src/event/mod.rs:13:16
|
13 | pub(crate) use attributes::AttributesIter;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default |
@elpiel this should be fixed in another pr. let me merge them and rebase this one on top of master |
@elpiel can you rebase? |
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
Signed-off-by: Lachezar Lechev <[email protected]>
ab2008d
to
eba7ee9
Compare
Should be done. |
Since it seems the no_std work is in progress, I'm gonna close this PR now (and i'm gonna close the issue too). @elpiel feel free to join in our cncf slack channel https://cloud-native.slack.com/archives/CTS0TCGVA to chat a little bit more about that! |
Issue #70
From what I see the difference between the two is not that big. If
no_std
has more priority I would suggest to leavesnafu
for the time being.